package net.lijingye.education.request;

import org.hibernate.validator.constraints.Length;
import org.hibernate.validator.constraints.NotBlank;

/**
 * Created by LijingYe on 2016/3/26.
 */
public class ChangePasswordRequest {
    @NotBlank
    @Length(min = 32, max = 32)
    private String password;
    @NotBlank
    @Length(min = 32, max = 32)
    private String newPassword;

    public ChangePasswordRequest() {
    }

    public ChangePasswordRequest(String password, String newPassword) {
        this.password = password;
        this.newPassword = newPassword;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public String getNewPassword() {
        return newPassword;
    }

    public void setNewPassword(String newPassword) {
        this.newPassword = newPassword;
    }

    @Override
    public String toString() {
        return "ChangePasswordRequest{" +
                "password='" + password + '\'' +
                ", newPassword='" + newPassword + '\'' +
                '}';
    }
}
